Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use more precise error tags when communicating with IO proxy #413

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

jonatanklosko
Copy link
Member

🐈

{:io_reply, ^ref, {:error, :request}} -> {:error, :unsupported}
{:io_reply, ^ref, {:error, {:request, _}}} -> {:request_error, :unsupported}
{:io_reply, ^ref, {:error, :request}} -> {:request_error, :unsupported}
{:io_reply, ^ref, {:error, :terminated}} -> {:request_error, :terminated}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this we don't actually need to change anything on Livebook side.

In retrospect, we should probably have a nested ok/error tuple to more clearly distinguish communication errors from expected errors, but it's fine.

@jonatanklosko jonatanklosko merged commit fdc7468 into main Apr 3, 2024
1 check passed
@jonatanklosko jonatanklosko deleted the jk-bridge-errors branch April 3, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants